<!--
 * @Author: ellery
 * @Date: 2022-08-26 22:39:08
 * @LastEditTime: 2022-09-05 18:14:59
 * @LastEditors: ellery
 * @Description:
 * @FilePath: \vue2-eslint-model\src\views\Main\Index.vue
 * Copyright (c) 2022 by ellery, All Rights Reserved.
 * 愿天堂没代码
-->
<template>
  <div>
    <h1>{{ $route.meta.label }}</h1>
    <div>传来的id为{{ $route.query.id || "没拿到id" }}</div>
    <div>传来的网站为{{ $route.query.url || "没拿到url" }}</div>
    <div @click="goBlack">后退到登录界面</div>
    <div class="hc">
      <div class="container">
        <p class="text">日历</p>
        <HumbleCalendar />
      </div>
    </div>
  </div>
</template>

<script>
import HumbleCalendar from "@/components/HumbleCalendar/HumbleCalendar";
export default {
  name: "Main",
  $$route: {
    name: "Main",
    lazy: true,
    meta: {
      label: "首页",
      isKey: true
    }
  },
  components: {
    HumbleCalendar
  },
  data() {
    return {};
  },

  mounted() {},

  methods: {
    goBlack() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="scss" scoped>
.hc {
  width: 100%;
  height: 800px;
  border: 1px solid red;
  display: flex;
  align-content: center;
  justify-content: center;
  .container {
    width: 500px;
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
    .text {
      color: #f59;
    }
  }
}
</style>
